package com.source.multithread.controller;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.ContextStartedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author wengqy
 * @Date 2021/1/8
 *
 * ContextStartedEvent
 * ContextStoppedEvent
 * ContextClosedEvent
 * RequestHandledEvent
 */
@Component
public class ApplicationListenerDemo implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        System.out.println("*********************************ContextRefreshedEvent*************************");
    }
}
